const CryptoJS = require("crypto-js");
const key = CryptoJS.enc.Utf8.parse('njrs1028X2025017');
const iv = CryptoJS.enc.Utf8.parse('njrs1028X2025017')

// 加密函数，包含配置项
export function encryptAES(message) {
  let config = {
    mode: CryptoJS.mode.CBC,
    padding: CryptoJS.pad.Pkcs7,
    iv: iv
  };
  return CryptoJS.AES.encrypt(message, key, config).toString();
  
}